<template>
  <div style="text-align:center">
    <table style="margin-left: auto; margin-right: auto;text-align:left">
      <tbody>
        <br/>
        <tr style="height: 25px">
          <td style="height: 25px;text-align:center" colspan="5" width="710">
            <h1>{{jkdn.jddw}}</h1>
            <p style="height:25px;margin-top:25px;margin-bottom:25px;font-size:32px">
              心电图结果报告
            </p>
          </td>
        </tr>
        <tr style="height: 50px;">
          <td style="height: 50px;border-bottom:2px solid black;" colspan="8">
            <p> 编号:{{jkdn.dnbh}}&nbsp;&nbsp;姓名:{{jkdn.name}}&nbsp;&nbsp;性别:{{sex==1?'男':'女'}}&nbsp;&nbsp;身份证号:{{jkdn.sfzhm}}&nbsp; &nbsp;电话:{{jkdn.lxdh}} </p>
          </td>
        </tr>
        <tr style="height: 25px;">
          <td colspan="5" width="300" style="text-align:center">
            <img id='programme' :src="data.src" style="height:980px;width:710px" alt=""> &nbsp;
          </td>
        </tr>
      </tbody>
    </table>

    <!-- <iframe :src="data.src" width="100%" height="100%"></iframe> -->

  </div>
</template>
<script>
import { getObj } from '@/api/cust/health/xdt'
import { getStore } from '@/util/store.js'
import { dateFormat, parseTime, timeFormatStr, timeFormat } from '@/filters/'
export default {
  name: 'xcgct',
  data() {
    return {
      grjbxxid: '',
      jktjid: '',
      sfzh: '',
      tmcode: '',
      data: {},
      jkdn: '',
      sex: ''
    }
  },
  created() {
    this.jkdn = getStore({ name: 'jkdn' })
    this.sex = parseInt(this.jkdn.sfzhm.substr(16, 1)) % 2
    this.grjbxxid = this.$route.query.grjbxxid
    this.jktjid = this.$route.query.id
    this.sfzh = this.$route.query.sfzh
    this.tmcode = this.$route.query.tmcode
    this.getObj()
  },
  mounted() {},
  methods: {
    getObj() {
      getObj({
        grjbxxid: '28',
        jktjid: '43'
      }).then(res => {
        console.log(res)
        this.data = res.data.data
        this.data.src = '/api/statics/' + this.tmcode + '.bmp'
      })
    }
  },
  computed: {},
  props: []
}
</script>
<style>
td {
  padding-left: 10px;
}
</style>
